package com.tvein.sanguo.zone.controller
{
	//flash
	//pureMVC
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.utilities.fabrication.patterns.command.SimpleFabricationCommand;	
	//custom
	import com.tvein.sanguo.Zone;
	import com.tvein.sanguo.zone.model.SystemProxy;
	import com.tvein.sanguo.zone.view.ZoneMediator;
	import com.tvein.sanguo.zone.view.SystemMediator;
//
	public class ZoneStartupCommand extends SimpleFabricationCommand
	{
		override public function execute(note:INotification):void
		{
			var zone:Zone = note.getBody() as Zone;
			
			facade.registerProxy(new SystemProxy());
			
			registerMediator(new SystemMediator(zone));
			registerMediator(new ZoneMediator(zone));
		}
	}
}